<extend name="app/Template/mobile" />

<block name="area_header">
    <style type="text/css">
        .top{height: 100px; width: 100%; background-color: ; padding: 4px;}
        .top_dv{background-color: white; height: 100%; width: 100%; padding: 10px; }
    </style>
</block>

<block name="area_body">
    <div class="top">
        <div class="top_dv ">
            <span style="font-size: 14px; color: #555555;" >当前余额</span><br><br>
            <span style="font-size: 20px; margin-top: 10px; color: orangered;">{$wallet.account_balance}</span><span style="font-size: 12px; padding-top: 10px; color: orangered;" >元</span>
            <a class="am-btn-success" href="{:C('SITE_URL')}{:U('Home/User/outmoney')}?uid={$uid}&key={$key}&access_token={$token}" style="height: 32px; float: right; text-align: center; margin-top: -5px; font-size: 14px; width: 200px; padding: 4px;">提现</a>
        </div>

    </div>
    <div class="am-panel am-panel-secondary" style="margin-top: 1px; font-size: 12px;">
        <div class="am-panel-hd">最近30天的记录</div>
        <div class="am-panel-bd" style="font-size: 12px; padding: 1px; ">
            <table class="am-table">
                <thead>
                <tr style="">
                    <th style="text-align: center;">时间</th>
                    <th style="text-align: center;">原因</th>
                    <th style="text-align: center;">金额</th>
                </tr>
                </thead>
                <tbody>
                <volist name="jilu" id="vo">
                    <tr>
                        <td>{$vo.create_time|date='Y-m-d H:i:s',###}</td>
                        <td><if condition="$vo['dtree_type'] eq 1">充值</if>
                            <if condition="$vo['dtree_type'] eq 2">奖励</if>
                            <if condition="$vo['dtree_type'] eq 3">提现</if>
                            <if condition="$vo['dtree_type'] eq 4">返佣</if></td>
                        <td><if condition="$vo['dtree_type'] eq 4"><font color="green">+{$vo.income}元</font><else/><font color="red">-{$vo.defray}元</font></if></td>
                    </tr>
                </volist>
                </tbody>
            </table>
        </div>
    </div>
</block>
